<template>
  <div id="app">
    <Menu :parentNode="parentNode" :childNode="childNode" />
    <!-- <HelloWorld /> -->
  </div>
</template>

<script>

import Menu from '@/components/menu.vue'
import HelloWorld from '@/components/HelloWorld.vue'
import { sections_get, menuItems_get } from '@/api/index'

export default {
  name: 'App',
  components: {
    Menu,HelloWorld
  },
  async created() {

  },
  methods: {
    async parentNode() {
      const data = await sections_get()
      return data

    },
    async childNode(id, params) {
      const data = await menuItems_get(id, params)
      return data
    }
  }
}
</script>

<style lang="scss">
html {
  padding: 0;
  margin: 0;
}
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}
</style>
